
#include "FactorySub.h"
#include "OperationSub.h"

using namespace npFactoryMethod;

FactorySub::FactorySub() : Factory()
{

}

FactorySub::~FactorySub()
{

}

FactorySub::FactorySub(const FactorySub& cpy) : Factory(cpy)
{

}

FactorySub& FactorySub::operator=(const FactorySub& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        Factory::operator=(asn);
        return *this;
    }
}

FactorySub* FactorySub::clone() const
{
    return new FactorySub(*this);
}

Operation* FactorySub::createOperation() const
{
    return new OperationSub();
}
